package com.justspeak.mediaplayer;

import java.io.File;
import java.io.Serializable;

import android.graphics.Bitmap;


/**
 * 媒体文件信息，可能是音频，视频等
 * @author giter
 *
 */
public class MediaFileInfo implements Serializable {

	private static final long	serialVersionUID	 = 11235234565675678L;
	private static final String	TAG	                 = "MediaFileInfo";
	private String	            filePath	         = null;
	private String	            backgroundPicPath	 = null;
	private boolean	            isVideo	             = false;
	private boolean	            isAudio	             = false;
	private Bitmap	            audioBackgroundBmp	 = null;
	private boolean	            fileexists	         = true;
	public MediaFileInfo(String filePath) {
		this.filePath = filePath;
		File f = new File(filePath);
		if(!f.exists()){
			fileexists = false;
			return;
		}
	}

	public MediaFileInfo(String filePath, boolean isEncrypted) {
		this(filePath);
	}


	public String getFilePath() {
		return filePath;
	}

	public String getBackgroundPicPath() {
		return backgroundPicPath;
	}

	public void setFilePath(String filePath) {
		this.filePath = filePath;
	}

	public void setBackgroundPicPath(String backgroundPicPath) {
		this.backgroundPicPath = backgroundPicPath;
	}

	public Bitmap getAudioBackgroundBmp() {
		return audioBackgroundBmp;
	}

	public void setAudioBackgroundBmp(Bitmap audioBackgroundBmp) {
		this.audioBackgroundBmp = audioBackgroundBmp;
	}
	public boolean isVideo() {
		return isVideo;
	}

	public boolean isAudio() {
		return isAudio;
	}

	public boolean isFileExists() {
		return fileexists;
	}
}
